package com.we.wecc.aw.mid.model.in;

import com.we.wecc.aw.db.model.AwardComment;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.beans.BeanUtils;

@ApiModel(value = "回复评论-入")
public class AwardCommentIn {
    @ApiModelProperty("id,修改时必传")
    private int id;

    @ApiModelProperty("产品id")
    private int awardId;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("父类id")
    private int parentId;

    @ApiModelProperty("点赞数")
    private int agreeNum;

    @ApiModelProperty("评论内容")
    private String comments;

    @ApiModelProperty("评论状态")
    private int delFlag;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getAwardId() {
        return awardId;
    }

    public void setAwardId(int awardId) {
        this.awardId = awardId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    public int getAgreeNum() {
        return agreeNum;
    }

    public void setAgreeNum(int agreeNum) {
        this.agreeNum = agreeNum;
    }

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments;
    }

    public int getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(int delFlag) {
        this.delFlag = delFlag;
    }

    public AwardComment toAwardComments(){
        AwardComment ac = new AwardComment();
        BeanUtils.copyProperties(this,ac);
        return ac;
    }
}
